<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Title</title>
    
    <style>
      .card {
        border: 1px gray solid;
        border-radius: 10px;
        padding: 15px;
      }
      
      .card-title {
        font-size: 15px;
        font-weight: bold;
        margin: 10px;
      }
      
      .card-body {
        height: 400px;
      }
      
      .card-body > div {
        color: darkgray;
        background: pink;
        margin: 10px;
      }
    </style>
  </head>
  <body>
    <!--grid-column属性设置grid项开始和结束位置，该属性是grid-column-start和grid-column-end的结合体，其属性值为开始分割线序号和结束分割线序号，开始分割线序号和结束分割线序号之间使用/分隔-->
    <div class="card">
      <div class="card-title">grid-column属性设置grid项开始和结束位置</div>
      <div class="card-body"
        style="display: grid;grid-template-columns: repeat(6,1fr);grid-template-rows: repeat(6,1fr)">
        <div style="grid-column-start: 2">grid-column-start: 2</div>
        <div style="grid-column-end: -3">grid-column-end: -3</div>
        <div style="grid-row-start: 2">grid-row-start: 2</div>
        <div style="grid-row-end: -1">grid-row-end: -1</div>
        
        <div style="grid-column: 3/4">grid-column: 3/4</div>
        <div style="grid-row: 3/5">grid-row: 3/5</div>
        
        <div style="grid-column: 5/7;grid-row: 3/6">grid-column: 5/7;grid-row: 3/6</div>
      </div>
    </div>
  </body>
</html>